import request from '@/utils/request'

// 查询Standard列表
export function listDb15(query) {
  return request({
    url: '/system/db15/list',
    method: 'get',
    params: query
  })
}

// 查询Standard列表
export function listStandard(query) {
  return request({
    url: '/byWeb/db15/getMutilSearch?pageNum=' + query.pageNum + '&pageSize=' + query.pageSize,
    method: 'post',
    data: query
  })
}

export function listAll(query) {
  return request({
    url: '/byWeb/db15/searchAll?pageNum=' + query.pageNum + '&pageSize=' + query.pageSize,
    method: 'post',
    data: query
  })
}

// 查询Standard详细
export function getDb15(id) {
  return request({
    url: '/system/db15/' + id,
    method: 'get'
  })
}

// 查询Standard详细
export function getStandard(id) {
  return request({
    url: '/byWeb/db15/getDetail/' + id,
    method: 'get'
  })
}


// 更新standard
export function updateStandard(data) {
  return request({
    url: '/byWeb/db15/edit',
    method: 'post',
    data: data
  })
}

// 新增Standard
export function addDb15(data) {
  return request({
    url: '/system/db15',
    method: 'post',
    data: data
  })
}

// 修改Standard
export function updateDb15(data) {
  return request({
    url: '/system/db15',
    method: 'put',
    data: data
  })
}

// 删除Standard
export function delDb15(id) {
  return request({
    url: '/system/db15/' + id,
    method: 'delete'
  })
}


// 一筐式查询标准
export function searchone(query) {
  return request({
    url: '/system/db15/searchone?pageNum=' + query.pageNum + '&pageSize=' + query.pageSize,
    method: 'post',
    data: query
  })
}


// 导出功能
export function exportexcel(query) {
  return request({
    url: 'system/db15/export',
    method: 'post',
    data: query
  })
}

// 导出功能
export function exportfile(query) {
  return request({
    url: 'system/db15/exportFile',
    method: 'post',
    data: query
  })
}
